/*
 * @Description: ant-design-vue按需引入
 * @Author: zhangxu
 * @Date: 2022-01-24 17:15:13
 */
module.exports = {
  presets: [
    ["@vue/babel-preset-jsx", { injectH: false }],
    [
      "@vue/app",
      {
        useBuiltIns: "entry",
        jsx: {
          injectH: false,
        },
        polyfills: [
          "es6.array.iterator",
          "es6.promise",
          "es7.promise.finally",
          "es6.symbol",
          "es7.array.includes",
          "es6.string.includes",
          "es6.array.find",
          "es6.array.from",
          "es6.object.assign",
        ],
      },
    ],
  ],

  plugins: [
    [
      "import",
      { libraryName: "ant-design-vue", libraryDirectory: "es", style: true },
    ],
  ],
};
